function agreementDownload(){
	window.open('agreementDownload');
}

function agreementUpload(){
	var compId = $('#Comp option:selected').val();
	var fileName = document.getElementById("filename").value;
	if(compId=="" || fileName==""){
		alert("请选择单位并上传文件！");
	}else{
	document.getElementById("formID").action="updateAgreement";
    $("#formID").submit();
	}
}